﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<FinalOnlineLibrary.Models.ChangePasswordModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Change Password
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <h2> Change Password </h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>    
    <fieldset>
          <legend><%=ViewData["error"]%></legend>

        <div class="editor-label">
            <%: Html.LabelFor(m => m.OldPassword) %>
        </div>
        <div class="editor-field">
            
            <%: Html.PasswordFor(m => m.OldPassword) %>
            <%: Html.ValidationMessageFor(m => m.OldPassword) %>
            
        </div>

        <div class="editor-label">
            <%: Html.LabelFor(m => m.NewPassword) %>
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(m => m.NewPassword) %>
            <%: Html.ValidationMessageFor(m => m.NewPassword) %>
        </div>

        <div class="editor-label">
             <%: Html.LabelFor(m => m.ConfirmPassword) %>
        </div>
        <div class="editor-field">
            <%: Html.PasswordFor(m => m.ConfirmPassword) %>
            <%: Html.ValidationMessageFor(m => m.ConfirmPassword) %>
        </div>
        
        <p>
            <input type="submit" value=" Change password " />
        </p>
    </fieldset>

</asp:Content>
